package com.wyp.design.pattern.behavior.templatemethod;

/**
 * @author: Oliver
 * @time: 2020/5/23/20:00
 */
public class DesignPatternCourse extends ACourse {
    @Override
    void packageCourse() {
        System.out.println("提供课程Java源代码");
    }

    /**
     * 重写钩子方法，当返回true时，进行写手记
     *
     * @return
     */
    @Override
    protected boolean needWriteArticle() {
        return true;
    }

}
